/**
 * 
 */
package com.google.codemirror2_gwt.client.mode;

import com.google.gwt.core.client.JavaScriptObject;

/**
 * @author Federico De Faveri defaveri@gmail.com
 *
 */
public interface Mode {
	
	public String token(Stream stream, JavaScriptObject state);
	
	public int indent(JavaScriptObject state, String textAfter);
	
	public JavaScriptObject startState();

}
